//
//  BVGoodsMenuCell.m
//  BuyVegetable
//
//  Created by yushanchang on 16/11/1.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVGoodsMenuCell.h"

@implementation BVGoodsMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setGoods_list:(BVGoods_list *)goods_list {
    _goods_list = goods_list;
    self.ID = goods_list.ID;
    self.title.text = goods_list.title;
//    NSLog(@"unit_price:%@",goods_list.unit_price);
    
}

- (IBAction)shoppingcartClick:(id)sender {
    if (self.shoppingCartBlock) {
        self.shoppingCartBlock(sender,self.ID);
    }
}

@end
